function [ edges ] = tr_edges( tr )
    edges = zeros(3, 2);
    edges(1,:) = tr(1:2);
    edges(2,:) = tr(2:3);
    edges(3, 1) = tr(3);
    edges(3, 2) = tr(1);
end % FUNCTION tr_edges

